package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 类目表(Category)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_category")
public class Category implements Serializable {
    private static final long serialVersionUID = 159081020005167926L;
    /**
     * 序号，id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 上级id
     */
    @TableField(value = "parend_id")
    private Integer parendId;

    /**
     * 类目名称
     */
    @TableField(value = "name")
    private String name;
}
